<?php

namespace app\adminapi\controller;


use think\Db;
use tools\jwt\Token;

class Index extends BaseApi
{
    public function index()
    {
//        $goods = Db::table('pyg_goods')->find();
//        dump($goods);die;
//        echo '这是adminapi模块的index控制器的index方法';
//        $this->ok(['action' => 'index']);

        /*$token = Token::getToken(100);
        dump($token);
        $userId = Token::getUserId($token);
        dump($userId);die;*/
        $password = encrypt_password('123456');
        echo $password;die;
    }
}
